package com.kaola.service;

import java.util.List;

import com.kaola.pojo.Product;
import com.kaola.pojo.User;
import com.kaola.pojo.UserProduct;

public interface UserProductService {

	void addToShoppingCart(UserProduct userProduct);
	
	List<UserProduct> listForShoppingCart(User user);

	UserProduct get(int upid);
	
	void updateToShoppingCart(UserProduct userProduct);

	void removeFromShoppingCart(int upid);
	
	boolean isExist(int uid, int pid);
	
	int correctionBuyNum(int buyNum, int inventory);
}
